#include "point.h"
#include "color.h"
#include <SDL/SDL.h>
#define LARGE 1000000000

typedef struct {
	Point points[3];
	Color cl;
} Triangle;

typedef struct{
	int x;
	int y;
} Vector;

Vector DeltaVector(Vector a, Vector b);

Vector PointDeltaVector(Point a, Point b);

int IsPointInTriangle(Point p, Triangle t);

int ComputeScreenOffset(SDL_Surface screen, int x, int y);

void DrawTriangle(SDL_Surface* screen, Triangle t);

int GetMinX(Triangle t);

int GetMinY(Triangle t);

int GetMaxX(Triangle t);

int GetMaxY(Triangle t);
